package com.coldchain.common.vo;


import com.coldchain.common.vo.CompanyVo;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

public class OrderVo implements Serializable {

    /**
     * 订单号(最大支持32位)
     */
    protected String orderId;

    /**
     * 企业Id
     */
    protected String companyId;

    /**
     * 企业信息
     */
    private CompanyVo company;
    protected String cysId;


    /**
     * 货币单位 (默认为RMB)
     */
    protected String priceUnit;

    /**
     * 来源 1:微信 2:支付宝;3银行卡
     */
    protected Integer channel;
    /**
     * 订单状态 0 待支付 1.已完成  2.异常 -1已取消
     */
    protected Integer payStatus;

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    protected Date createTime;
    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }

    public String getCysId() {
        return cysId;
    }

    public void setCysId(String cysId) {
        this.cysId = cysId;
    }


    public String getPriceUnit() {
        return priceUnit;
    }

    public void setPriceUnit(String priceUnit) {
        this.priceUnit = priceUnit;
    }

    public Integer getChannel() {
        return channel;
    }

    public void setChannel(Integer channel) {
        this.channel = channel;
    }

    public Integer getPayStatus() {
        return payStatus;
    }

    public void setPayStatus(Integer payStatus) {
        this.payStatus = payStatus;
    }

    public CompanyVo getCompany() {
        return company;
    }

    public void setCompany(CompanyVo company) {
        this.company = company;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}
